<?php 
/**
* 
*/


class GruposController extends Sgit_Controller_Action
{

    protected $_main_model='AclGroup';
    protected $_main_form='Grupo';

    protected function _begin(){
      // $this->model->proyectos = new Application_Model_Proyectos();
    }


    public function indexAction()
    {
        $rows = $this->_model->default->getAll();
        $this->view->rows =$this->_prepareRowsToTr($rows);
    }


    public function editarAction()
    {
        $this->_editar();
    }
    
    public function insertarAction()
    {
        $this->_insertar();
    }
    
    public function borrarAction()
    {
        $this->_borrar();
    }
    
    protected function prepareValuesToDb()
    {
	$row=$this->_form->getValues();
        return $row;
    }

	
}


